import {combineReducers} from 'redux'
import userReducer from './user'
import cartReducer from './cart'
import commonReducer from './common'

// 复杂的应用需要使用多个Reducer来实现业务逻辑，把reducer设置成单独模块，并使用combineReducers合并成一个大的Reducer后使用

const reducer = combineReducers({
    user:userReducer,
    cart:cartReducer,
    common:commonReducer,
})

export default reducer